//
//  ListTableViewCell.m
//  CivilianTravel
//
//  Created by xalo on 16/7/14.
//  Copyright © 2016年 许仕杰. All rights reserved.
//

#import "ListTableViewCell.h"
 

@implementation ListTableViewCell

- (void)awakeFromNib {
    // Initialization code
}
-(void)setcellwithmodle:(Listmodel *)modle{
     self.lable1.text = modle.description1;
    NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc]initWithString:self.lable1.text];
    NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc]init];
    [self.imageview1 sd_setImageWithURL:[NSURL URLWithString:modle.picture] placeholderImage:[UIImage imageNamed:@"等待.jpg.gif"]];
//    [self.imageview1 sd_setImageWithURL:[NSURL URLWithString:modle.picture]];
    [paragraphStyle setFirstLineHeadIndent:30];//首行缩进
    [attributedString addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, self.lable1.text.length)];
    
    
    self.lable1.attributedText = attributedString;
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
 